import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { EducationComponent } from './education/education.component';
import { DashboardComponent  } from './dashboard/dashboard.component';
import { EductionDetailComponent } from "./eduction-detail/eduction-detail.component";

const routes: Routes = [
  {path: '', redirectTo: '/dashboard', pathMatch: 'full' },
  {path: 'heroes', component: EducationComponent },
  {path: 'dashboard', component: DashboardComponent },
  {path: 'detail/:id',component: EductionDetailComponent }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
